﻿namespace Socket.Core
{
    using System;
    using System.Runtime.CompilerServices;

    public class DefaultMessage : IMessage
    {
        public DefaultMessage(byte[] body)
        {
            this.Body = body;
        }

        public virtual byte[] GetReceiveBytes()
        {
            return this.Body;
        }

        public virtual byte[] GetSendBytes()
        {
            return this.Body;
        }

        public byte[] Body { get; private set; }
    }
}

